﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using ERP_RORZE.Product.Quotation;

namespace ERP_RORZE.Product.Forms
{
    public partial class Frm_Quatation : DevExpress.XtraEditors.XtraForm
    {
        ctrlQuatationList ctrlQuationlist = new ctrlQuatationList();
        ctrlQuotationCaculation ctrlQuotioncaculation = new ctrlQuotationCaculation();
        ctrlQuotationMachine ctrlQuotaitonmachine = new ctrlQuotationMachine();
        ctrlQuotationMaterial ctrlQuotationmaterial = new ctrlQuotationMaterial();
        public Frm_Quatation()
        {
            InitializeComponent();
        }

        private void navItemQuotationList_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spcQuatation.Panel2.Controls.Clear();
            spcQuatation.Panel2.Controls.Add(ctrlQuationlist);
            ctrlQuationlist.Dock = DockStyle.Fill;
        }

        private void navItemQuotationMachine_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spcQuatation.Panel2.Controls.Clear();
            spcQuatation.Panel2.Controls.Add(ctrlQuotaitonmachine);
            ctrlQuotaitonmachine.Dock = DockStyle.Fill;
        }

        private void navItemQuotationMaterial_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spcQuatation.Panel2.Controls.Clear();
            spcQuatation.Panel2.Controls.Add(ctrlQuotationmaterial);
            ctrlQuotationmaterial.Dock = DockStyle.Fill;
        }

        private void navItemQuotationCaculation_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spcQuatation.Panel2.Controls.Clear();
            spcQuatation.Panel2.Controls.Add(ctrlQuotioncaculation);
            ctrlQuotioncaculation.Dock = DockStyle.Fill;
        }


    }
}